package com.asset.dispoal.role.service.converter;

import com.asset.dispoal.role.domain.db.entity.GbRoleDo;
import com.asset.dispoal.role.dto.GbRoleRequest;
import com.asset.dispoal.role.dto.GbRoleResponse;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;


/**
 * @author qr
 * @date 2022/3/2$
 */
@Mapper
public interface RoleConverter {

    RoleConverter INSTANCE = Mappers.getMapper(RoleConverter.class);


    GbRoleDo reqToDo(GbRoleRequest roleResult);


    GbRoleResponse doToRes(GbRoleDo roleDo);

    List<GbRoleResponse> dosToRes(List<GbRoleDo> doList);
}
